package com.sq.shangcheng;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@ServletComponentScan
public class MainApplication
		extends SpringBootServletInitializer
{
	@Value("${spring.file.uploadBug}")
	private static Boolean uploadBug;


	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(SpringApplication.class);
	}
	public static void main(String[] args) {
		SpringApplication.run(MainApplication.class, args);

//		if(uploadBug ) {
//			System.out.println("aaaa");
//			FileUploadTask();
//		}

	}




}
